home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1999 #2
/
Amiga Plus CD - 1999 - No. 2.iso
/
System-Boost
/
Workbench
/
ToolManager
/
Source
/
global_misc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-06-17
|
814b
|
33 lines
/*
* global_misc.c V3.1
*
* ToolManager global miscellaneous routines
*
* Copyright (C) 1990-98 Stefan Becker
*
* This source code is for educational purposes only. You may study it
* and copy ideas or algorithms from it for your own projects. It is
* not allowed to use any of the source codes (in full or in parts)
* in other programs. Especially it is not allowed to create variants
* of ToolManager or ToolManager-like programs from this source code.
*
*/
/* Get next in list */
struct MinNode *GetSucc(struct MinNode *n)
{
struct MinNode *succ = n->mln_Succ;
/* End of list? */
return(succ->mln_Succ ? succ : NULL);
}
/* Get previous in list */
struct MinNode *GetPred(struct MinNode *n)
{
struct MinNode *pred = n->mln_Pred;
/* End of list? */
return(pred->mln_Pred ? pred : NULL);
}